package com.app.designpatternslearn.behavior.strategypattern

import com.app.designpatternslearn.behavior.strategypattern.code.AddStrategy
import com.app.designpatternslearn.behavior.strategypattern.code.Context
import com.app.designpatternslearn.behavior.strategypattern.code.MultiplyStrategy

fun main() {

    val context = Context()

    context.strategy = AddStrategy()

    println("add --> ${context.doAction(1, 2)}")

    context.strategy = MultiplyStrategy()

    println("multiply --> ${context.doAction(1, 2)}")
}